package Day3_07_24;

import java.util.Scanner;

//倒三角
public class Inverted_Triangle {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入倒三角形的高:");
		int num = scanner.nextInt();
		for (int i = 1; i <= num; i++) {
			for (int j = 0; j <= i; j++) {
				System.out.print(" ");
			}
			for (int k = num; k >= i; k--) {
				System.out.print("*");
			}
			for (int l = num; l > i; l--) {
				System.out.print("*");
			}
			System.out.println();
		}
	}
}
